﻿@*
    For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860
*@
@{
    Layout = null;
}
<link href="~/lib/layui/css/layui.css" rel="stylesheet" />
<script src="~/lib/layui/layui.js"></script>
<script src="~/js/js.cookie.js"></script>
<script src="~/js/moment.js"></script>
<script src="~/lib/jquery/dist/jquery.js"></script>




<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>智慧农业-智慧畜牧育种管理平台</title>
</head>
<body>
    <div class="layui-layout layui-layout-admin">
        <div class="layui-header">
            <div class="layui-logo layui-hide-xs layui-bg-black">智慧畜牧育种管理平台</div>
            <!-- 头部区域（可配合layui 已有的水平导航） -->


            <dl class="layui-nav-child">
                <dd><a href="/Client/Login">重新登录</a></dd>
                <dd><a href="" onclick="window.close()">退出</a></dd>
            </dl>

            <ul class="layui-nav layui-layout-left">
                <li class="layui-nav-item layui-hide-xs"><a href="/Client/Login">登录</a></li>
                <li class="layui-nav-item layui-hide-xs"><a href="" onclick="window.close()">退出</a></li>

            </ul>
            <ul class="layui-nav layui-layout-right">
                <li class="layui-nav-item layui-hide layui-show-md-inline-block">
                    <a href="javascript:;">
                        <img src="//tva1.sinaimg.cn/crop.0.0.118.118.180/5db11ff4gw1e77d3nqrv8j203b03cweg.jpg" class="layui-nav-img">
                        当前用户：liy
            </ul>
        </div>

        <div class="layui-side layui-bg-black">
            <div class="layui-side-scroll">
                <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
                <ul class="layui-nav layui-nav-tree" lay-filter="test">
                    <li class="layui-nav-item layui-nav-itemed">
                        <a class="" href="/">登录</a>
                    </li>
                    <li class="layui-nav-item layui-nav-itemed">
                        <a class="" href="javascript:;">个人设置</a>
                        <dl class="layui-nav-child">
                            <dd><a href="#" onclick="setIFrame(0)">个人信息</a></dd>
                        </dl>
                    </li>
                    <li class="layui-nav-item layui-nav-itemed">
                        <a class="" href="javascript:;">权限管理</a>
                        <dl class="layui-nav-child">
                            <dd><a href="#" onclick="setIFrame(3)">角色设置</a></dd>
                            <dd><a href="#" onclick="setIFrame(4)">权限分配</a></dd>
                            <dd>
                                <a href="#" onclick="setIFrame(5)">人员管理</a>
                                <dl class="layui-nav-child">
                                    <dd><a href="#" onclick="setIFrame(21)">增加人员</a></dd>
                                    <dd><a href="#" onclick="setIFrame(26)">查看人员</a></dd>

                                </dl>
                            </dd>
                        </dl>
                    </li>
                    <li class="layui-nav-item layui-nav-itemed">
                        <a class="" href="javascript:;">组织管理</a>
                        <dl class="layui-nav-child">
                            <dd><a href="#" onclick="setIFrame(22)">单位设置</a></dd>
                            <dd>
                                <a href="#" onclick="setIFrame(28)">部门设置</a>
                                <dl class="layui-nav-child">
                                    <dd><a href="#" onclick="setIFrame(23)">列表显示</a></dd>
                                </dl>
                            </dd>
                            <dd><a href="#" onclick="setIFrame(24)">羊场设置</a></dd>
                            <dd><a href="#" onclick="setIFrame(25)">栋舍管理</a></dd>
                        </dl>
                    </li>
                    <li class="layui-nav-item layui-nav-itemed">
                        <a class="" href="javascript:;">初期管理</a>
                        <dl class="layui-nav-child">
                            <dd><a href="#" onclick="setIFrame(6)">种公期初</a></dd>
                            <dd><a href="#" onclick="setIFrame(7)">种母期初</a></dd>
                            <dd><a href="#" onclick="setIFrame(8)">后裔期初</a></dd>
                        </dl>
                    </li>
                    <li class="layui-nav-item layui-nav-itemed">
                        <a class="" href="javascript:;">生产管理</a>
                        <dl class="layui-nav-child">
                            <dd><a href="#" onclick="setIFrame(9)">羊只档案</a></dd>
                            <dd><a href="#" onclick="setIFrame(10)">种公档案</a></dd>
                            <dd><a href="#" onclick="setIFrame(11)">种母档案</a></dd>
                            <dd><a href="#" onclick="setIFrame(12)">后裔档案</a></dd>
                            <dd><a href="#" onclick="setIFrame(13)">羊只转舍</a></dd>
                            <dd><a href="#" onclick="setIFrame(14)">种母配种</a></dd>
                            <dd><a href="#" onclick="setIFrame(15)">种母妊捡</a></dd>
                            <dd><a href="#" onclick="setIFrame(16)">种母分娩</a></dd>
                            <dd><a href="#" onclick="setIFrame(17)">种母断奶</a></dd>
                            <dd><a href="#" onclick="setIFrame(18)">种母历史记录</a></dd>
                            <dd><a href="#" onclick="setIFrame(19)">羔羊断奶</a></dd>
                            <dd><a href="#" onclick="setIFrame(20)">后裔转钟</a></dd>

                        </dl>
                    </li>
                    <li class="layui-nav-item layui-nav-itemed">
                        <a class="" href="javascript:;">育种管理</a>
                        <dl class="layui-nav-child">
                            <dd><a href="#" onclick="setIFrame(30)">羊只称重</a></dd>
                            <dd><a href="#" onclick="setIFrame(31)">体尺测定</a></dd>
                            <dd><a href="#" onclick="setIFrame(32)">品相测定</a></dd>
                        </dl>
                    </li>
                    <li class="layui-nav-item layui-nav-itemed">
                        <a class="" href="javascript:;">汇总报表</a>
                        <dl class="layui-nav-child">
                            <dd><a href="#" onclick="setIFrame(98)">羊场存栏统计</a></dd>
                            <dd><a href="#" onclick="setIFrame(99)">羊场时实存栏</a></dd>
                        </dl>
                    </li>
                    <li class="layui-nav-item layui-nav-itemed">
                        <a class="" href="javascript:;">羊只管理</a>
                        <dl class="layui-nav-child">
                            <dd><a href="#" onclick="setIFrame(33)">死亡管理</a></dd>
                            <dd><a href="#" onclick="setIFrame(34)">淘汰管理</a></dd>
                        </dl>
                    </li>
                    <li class="layui-nav-item layui-nav-itemed">
                        <a class="" href="javascript:;">采购销售</a>
                        <dl class="layui-nav-child">
                            <dd>
                                <a href="#" onclick="setIFrame(42)">个体采购</a>
                                <dl class="layui-nav-child">
                                    <dd><a href="#" onclick="setIFrame(43)">羊只采购-新增</a></dd>

                                </dl>
                            </dd>
                            <dd>
                                <a href="#" onclick="setIFrame(44)">个体销售</a>
                                <dl class="layui-nav-child">
                                    <dd><a href="#" onclick="setIFrame(45)">羊只销售-新增</a></dd>

                                </dl>
                            </dd>
                            <dd>
                                <a href="#" onclick="setIFrame(46)">供应商管理</a>
                                <dl class="layui-nav-child">
                                    <dd><a href="#" onclick="setIFrame(47)">供应商-新增</a></dd>
                                    <dd><a href="#" onclick="setIFrame(48)">供应商-查看</a></dd>

                                </dl>
                            </dd>
                            <dd>
                                <a href="#" onclick="setIFrame(49)">客户管理</a>
                                <dl class="layui-nav-child">
                                    <dd><a href="#" onclick="setIFrame(50)">客户-新增</a></dd>
                                    <dd><a href="#" onclick="setIFrame(51)">客户-查看</a></dd>

                                </dl>
                            </dd>
                        </dl>
                    </li>
                    <li class="layui-nav-item layui-nav-itemed">
                        <a class="" href="javascript:;">提示报表</a>
                        <dl class="layui-nav-child">
                            <dd><a href="#" onclick="setIFrame(39)">待配提示</a></dd>
                            <dd><a href="#" onclick="setIFrame(40)">首次妊检提示</a></dd>
                            <dd><a href="#" onclick="setIFrame(41)">分娩提示</a></dd>
                        </dl>
                    </li>
                    <li class="layui-nav-item"><a href="javascript:;">关于本系统</a></li>

                </ul>
            </div>
        </div>
        <div class="layui-body">

            <iframe src="" id="iframeShow" width="100%" height="100%" frameborder="no" border="0"></iframe>

        </div>
    </div>



    @* <script src="~/Content/layui-main/dist/layui.js"></script>
    <link href="~/Content/layui-main/dist/css/layui.css" rel="stylesheet" />
    <script src="~/Scripts/jquery-3.4.1.js"></script> *@

    <script>


        function setIFrame(flag) {

            switch (flag) {
                case 0: //新用户注册
                    $("#iframeShow").attr("src", "/User/AddUser");
                    break;
                // case 1:
                //     $("#iframeShow").attr("src", "/User/Addsafe");
                //     break;
                // case 2:
                //     $("#iframeShow").attr("src", "/Dept/deptAddndex");
                //     break;
                case 3:
                    $("#iframeShow").attr("src", "/User/GetRoles");
                    break;
                case 4:
                    $("#iframeShow").attr("src", "/User/Permissions");
                    break;
                case 5:
                    $("#iframeShow").attr("src", "/User/UserList");
                    break;
                case 6:
                    $("#iframeShow").attr("src", "/Initial/InitialIndex");
                    break;
                case 7:
                    $("#iframeShow").attr("src", "/Initial/SpermatophoreIndex");
                    break;
                case 8:
                    $("#iframeShow").attr("src", "/Initial/ProgenyIndex");
                    break;
                case 9:
                    $("#iframeShow").attr("src", "/Initial/ArchivesIndex");
                    break;
                case 10:
                    $("#iframeShow").attr("src", "/Initial/GInitialIndex");
                    break;
                case 11:
                    $("#iframeShow").attr("src", "/Initial/MInitialIndex");
                    break;
                case 12:
                    $("#iframeShow").attr("src", "/Initial/HInitialIndex");
                    break;
                case 13: 
                    $("#iframeShow").attr("src", "/Birth/SheepTransfer");
                    break;
                case 14:
                    $("#iframeShow").attr("src", "/Birth/Breedingsetting");
                    break;
                case 15:
                    $("#iframeShow").attr("src", "/Birth/PregnancyTest"); 
                    break;
                case 16:
                    $("#iframeShow").attr("src", "/Birth/BreedingParturition");
                    break;
                case 17:
                    $("#iframeShow").attr("src", "/Birth/BreedingAblactation");
                    break;
                case 18:
                    $("#iframeShow").attr("src", "/Birth/BreedingHistory");
                    break;
                case 19:
                    $("#iframeShow").attr("src", "/Birth/LambAblactation");
                    break;
                case 20:
                    $("#iframeShow").attr("src", "/Birth/Descendent");
                    break;
                case 21:
                    $("#iframeShow").attr("src", "/User/AddPersonnel");
                    break;
                case 22:
                    $("#iframeShow").attr("src", "/Flat/FlatIndex");
                    break;

                case 23:
                    $("#iframeShow").attr("src", "/User/Department");
                    break;
                case 24:
                    $("#iframeShow").attr("src", "/User/SheepFarm");
                    break;

                case 25:
                    $("#iframeShow").attr("src", "/User/GetBuildings");
                    break;
                case 26:
                    $("#iframeShow").attr("src", "/User/GetPersonnel");
                    break;
                case 28:
                    $("#iframeShow").attr("src", "/User/DepartmentAdd");
                    break;
                case 18:
                    $("#iframeShow").attr("src", "/Birth/BreedingHistory");
                    break;
                case 30:
                    $("#iframeShow").attr("src", "/Breesing/Sheepweighing");
                    break;
                case 31:
                    $("#iframeShow").attr("src", "/Breesing/Bodymeasure");
                    break;
                case 32:
                    $("#iframeShow").attr("src", "/Breesing/Appearance");
                    break;
                case 33:
                    $("#iframeShow").attr("src", "/Raise/Death");
                    break;
                case 34:
                    $("#iframeShow").attr("src", "/Raise/Eliminate");
                    break;
                case 35:
                    $("#iframeShow").attr("src", "//");
                    break;
                case 36:
                    $("#iframeShow").attr("src", "//");
                    break;
                case 37:
                    $("#iframeShow").attr("src", "//");
                    break;
                case 38:
                    $("#iframeShow").attr("src", "//");
                    break;
                case 39:
                    $("#iframeShow").attr("src", "/Prompt/Matched");
                    break;
                case 40:
                    $("#iframeShow").attr("src", "/Prompt/Pregnancy");
                    break;
                case 41:
                    $("#iframeShow").attr("src", "/Prompt/Parturition");
                    break;
                case 42:
                    $("#iframeShow").attr("src", "/Purchase/PurchaseIndex");
                    break;
                case 43:
                    $("#iframeShow").attr("src", "/Purchase/AddPurchaseIndex");
                    break;
                case 44:
                    $("#iframeShow").attr("src", "/Purchase/SellIndex");
                    break;
                case 45:
                    $("#iframeShow").attr("src", "/Purchase/AddSellIndex");
                case 46:
                    $("#iframeShow").attr("src", "/Procurement/Vendor");
                    break;
                case 47:
                    $("#iframeShow").attr("src", "/Procurement/AddVendor");
                    break;
                case 48:
                    $("#iframeShow").attr("src", "/Procurement/ViewVendor");
                    break;
                case 49:
                    $("#iframeShow").attr("src", "/Procurement/Client");
                    break;
                case 50:
                    $("#iframeShow").attr("src", "/Procurement/AddClient");
                    break;
                case 51:
                    $("#iframeShow").attr("src", "/Procurement/ViewClient");
                    break;
                case 99:
                    $("#iframeShow").attr("src", "/Summary_/SheepSummaryIndex");
                    break;
                case 98:
                    $("#iframeShow").attr("src", "/Procurement/AddClient");
                    break;
            }
        }
        //JS
        layui.use(['element', 'layer', 'util'], function () {
            var element = layui.element
                , layer = layui.layer
                , util = layui.util
                , $ = layui.$;

            //头部事件
            util.event('lay-header-event', {
                //左侧菜单事件
                menuLeft: function (othis) {
                    layer.msg('展开左侧菜单的操作', { icon: 0 });
                }
                , menuRight: function () {
                    layer.open({
                        type: 1
                        , content: '<div style="padding: 15px;">处理右侧面板的操作</div>'
                        , area: ['260px', '100%']
                        , offset: 'rt' //右上角
                        , anim: 5
                        , shadeClose: true
                    });
                }
            });

        });
    </script>
</body>
</html>










